﻿<local:BaseLab x:Class="Rxx.Labs.Reactive.UI.ViewModelLab"
							 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
							 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
							 xmlns:local="clr-namespace:Rxx.Labs">

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<TextBlock Grid.Row="0" FontSize="20" FontWeight="Bold"
							 HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap"
							 Text="{Binding WordsEnteredAndCounter}" />

		<Button Grid.Row="1" Margin="5" Content="Submit" HorizontalAlignment="Center" VerticalAlignment="Center"
						Click="Submit" />

		<TextBox Grid.Row="2" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Center"
						 Text="{Binding Words, Mode=TwoWay}" />

	</Grid>

</local:BaseLab>